const mongoose = require("mongoose");
const Schema = mongoose.Schema;

// Create Schema
const UserInit = new Schema({
  number: {
    type: Number,
    required: true,
  },
  moduleA: {
    type: Number,
    default: 0,
    required: true,
  },
  moduleB: {
    type: Number,
    default: 0,
    required: true,
  },
  moduleC: {
    type: Number,
    default: 0,
    required: true,
  },
  moduleD: {
    type: Number,
    default: 0,
    required: true,
  },
  moduleE: {
    type: Number,
    default: 0,
    required: true,
  },
});

module.exports = Init = mongoose.model("userinit", UserInit);
